/**
 * 错误相关路由配置
 */
import type { RouteRecordRaw } from "vue-router";

export const errorRoutes: RouteRecordRaw[] = [
  {
    path: "/notFound",
    name: "404",
    meta: { title: "404 Not Found" },
    component: () => import("@components/common/Err404Page"),
  },
  {
    path: "/error",
    name: "500",
    meta: { title: "500 服务器错误" },
    component: () => import("@components/common/Err500Page"),
  },
  {
    path: "/:pathMatch(.*)",
    redirect: "/notFound",
  },
];
